VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsTimer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit

Private timerID As Long
Private pause_ As Boolean

Public Property Get Pause() As Boolean
    Pause = pause_
End Property

Public Property Let Pause(Value As Boolean)
    pause_ = Value
    If Not Value Then Call System.TIMER_Reset(timerID)
End Property

Public Property Get Value() As Long
    If Not pause_ Then Value = System.TIMER_GetValue(timerID)
End Property

Public Sub Reset()
    Call System.TIMER_Reset(timerID)
End Sub

Private Sub Class_Initialize()
    timerID = System.TIMER_Create()
End Sub

Private Sub Class_Terminate()
    Call System.TIMER_Kill(timerID)
End Sub

